<template>
  <div>
    <el-button type="primary" @click="openModel">打开弹窗</el-button>
  </div>
</template>

<script setup>
  import FormBase from './components/form-base.vue';
  import { useDialog } from '@/utils/useDialog';
  const openModel = () => {
    useDialog(FormBase, { modelValue: true }, { title: '弹窗标题' });
  };
</script>
